package cn.wolfcode.mycat.handler;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Jason
 * @Date: 2021/04/09/11:02
 * @Description:
 */
@Slf4j
@Order(20)
@Service
public class SecondHandler extends AbstractHandler {
	@Override
	public void before(Map<String, Object> context) {
		log.info("second before...{}", JSONObject.toJSONString(context));
		context.put("sb", "123");
	}
	
	@Override
	public void after(Map<String, Object> context) {
		log.info("second after...{}", JSONObject.toJSONString(context));
		context.put("sa", "456");
	}
}
